﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;

namespace UtilityLibrary.Ormapping
{
    [Serializable]
    public sealed class GenerateIdException : Exception
    {
        public GenerateIdException()
            : base()
        {
        }

        public GenerateIdException(String messgae)
            : base(messgae)
        {
        }

        public GenerateIdException(String message, Exception innerException)
            : base(message, innerException)
        {
        }

        private GenerateIdException(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
        }

        public override string Message
        {
            get
            {
                String msg = base.Message;
                return "自动生成Id时发生异常。" + msg;
            }
        }
    }
}
